package generic;

/**
 * @program JavaBase
 * @description: 自定义泛型类
 * @author: zhanglu
 * @create: 2019-06-07 16:58:00
 */
public class Order<T,E> {

    private T t;

    private E e;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public E getE() {
        return e;
    }

    public void setE(E e) {
        this.e = e;
    }

    public <T> T getT(T t){
        return t;
    }

    @Override
    public String toString() {
        return "Order{" +
                "t=" + t +
                ", e=" + e +
                '}';
    }

}

